/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #535353;
    font-family: Arial, sans-serif;
}

/* 主容器 */
.container {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 帮助文本样式 */
.help-text {
    font-size: 10px;
    color: #666;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.4;
}

/* 左侧按钮面板 */
#buttonsPanel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 95vh;
    overflow-y: auto;
    padding-right: 10px;
    width: 220px;
}

/* 按钮组 */
.button-group h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
    text-align: center;
    background-color: #f0f0f0;
    padding: 5px;
    border-radius: 5px;
}

/* 按钮网格布局 */
.button-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

/* 服装按钮 */
.clothing-btn {
    width: 60px;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background-color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 按钮内图片 */
.clothing-btn img {
    max-width: 150%;
    max-height: 150%;
    object-fit: contain;
}

/* 隐藏按钮样式 */
.hide-btn {
    font-size: 24px;
    font-weight: bold;
    color: #999;
    background-color: #f9f9f9;
}

.hide-btn:hover {
    background-color: #ffeeee;
    color: #ff6666;
}

.hide-btn.selected {
    background-color: #ffeeee;
    color: #ff6666;
    border-color: #ff6666;
}

/* 选中状态 */
.clothing-btn.selected {
    border-color: #8d203f;
    background-color: #f8f0f1;
    transform: scale(1.05);
}

/* 悬停效果 */
.clothing-btn:hover:not(.selected) {
    border-color: #999;
    transform: scale(1.02);
}

/* 纸娃娃容器 - 扩大尺寸 */
#paperDoll {
    position: relative;
    width: 300px;
    height: 650px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    overflow: hidden;
}

/* 服装容器 */
.clothing-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

/* 服装通用样式 */
.clothing-item {
    position: absolute;
    display: block;
    top: 15px;
    height: 625px;
    left: 50%;
    transform: translateX(-50%);
}

/* 各类别z-index层级 */
#bodyContainer {
    z-index: 10;
}

#shoesContainer {
    z-index: 15;
}

#socksContainer {
    z-index: 16;
}

#leggingsContainer {
    z-index: 17;
}

#shirtContainer {
    z-index: 20;
}

#eyesContainer {
    z-index: 25;
}

#earringsContainer {
    z-index: 30;
}

#headwearContainer {
    z-index: 35;
}

#othersContainer {
    z-index: 40;
}

/* 滚动条样式 */
#buttonsPanel::-webkit-scrollbar {
    width: 6px;
}

#buttonsPanel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#buttonsPanel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#buttonsPanel::-webkit-scrollbar-thumb:hover {
    background: #555;
}